﻿<div class="login">
    @if (!islogin)
    {
        <a onclick="javascript:if(!islogin()){login(); return false;}"> 登录 </a>
    }
    else
    {
        <a>
          欢迎：<span>@account</span>  @*<img src="../res/static/images/header.png" style="width: 36px; height: 36px;">  *@
        </a><span><a href="logout">退出</a></span>
    }
</div>

@code {
    [Parameter]
    public bool islogin { get; set; } = true;
    [Parameter]
    public string account { get; set; }
}
